#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(int argc, char* argv[]) 
{
	int n;
	printf("input n:");
	scanf("%d", &n);
	if (n % 62== 0)
	{
		printf("yes");
		return 0;
	}
		while (n > 0)
	{
		if (n % 10 == 6 || n % 10 == 2 || n % 62 == 0)
		{
			printf("yes");
			break;
		}
		else printf("no");
		break;
		n /= n;
	}

	return 0;
}